package vip.zhenzicheng.design_patterns.responsibility.jdk;

/**
 * @author zhenzicheng
 * @date 2022-05-26 19:03
 */
public class SecondFilter implements Filter {

  @Override
  public void doFilter(Request req, Response res, FilterChain chain) {
    System.out.println("过滤器2 前置处理");

    // 先执行所有request再倒序执行所有response
    chain.doFilter(req, res);

    System.out.println("过滤器2 后置处理");
  }
}
